import fetch from "../fetch";

/**
 * Version service
 */
const Datas = {
  get: (id) => fetch({
	url: "api/admin/datas/get",
	data: {
	  id: id
	},
	method: "post"
  }),
  page: (query, param) => fetch({
	url: "api/admin/datas/page",
	data: {
	  param: param,
	  query: query
	},
	method: "post"
  }),
  chart: (query) => fetch({
	url: "api/admin/datas/chart",
	data: {
	  query: query
	},
	method: "post"
  }),
  del: (query) => fetch({
	url: "api/admin/datas/delete",
	data: {
	  query: query
	},
	method: "post"
  }),
};
export default Datas;
